package com.iplant.basic.service.po.fmc;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.join.DBJoin;
import com.iplant.base.utils.annotation.po.DBBasePO;

/**
 * 扫码枪配置
 *
 * @author YouWang·Peng
 * 2023-10-13 14:35:35
 */
@DBBasePO(TableName = "FMC_Code_Scanning_Gun_Config", CheckName = {"Code", "PrefixChar"}, CodeAuto = true,
        CodePrefix = "FCSGC-", CodeNum = 4)
public class FMCCodeScanningGunConfig extends BasePO {
    /**
     * 开头字符
     */
    @DBField
    public String PrefixChar = "";
    /**
     * 工位ID
     */
    @DBCondition(CompareType = DBCondition.DBCompareType.in)
    @DBField
    public int StationID = 0;
    /**
     * 工位名称
     */
    @DBJoin(name = "Name", tableName = "fmc_station", tableAsName = "fmc_station1", Schemas = DBSchemas.Basic,
            MainTableField = "StationID")
    public String StationName = "";

    /**
     * 作业人ID
     */
    @DBField
    public int WorkerID = 0;
    @DBJoin(name = "Name", tableName = "mbs_user", tableAsName = "mbs_user1", Schemas = DBSchemas.Basic,
            MainTableField = "WorkerID")
    public String WorkerName = "";

    @JsonProperty("PrefixChar")
    public String getPrefixChar() {
        return PrefixChar;
    }

    public void setPrefixChar(String prefixChar) {
        PrefixChar = prefixChar;
    }

    @JsonProperty("StationID")
    public int getStationID() {
        return StationID;
    }

    public void setStationID(int stationID) {
        StationID = stationID;
    }

    @JsonProperty("StationName")
    public String getStationName() {
        return StationName;
    }

    public void setStationName(String stationName) {
        StationName = stationName;
    }

    @JsonProperty("WorkerID")
    public int getWorkerID() {
        return WorkerID;
    }

    public void setWorkerID(int workerID) {
        WorkerID = workerID;
    }

    @JsonProperty("WorkerName")
    public String getWorkerName() {
        return WorkerName;
    }

    public void setWorkerName(String workerName) {
        WorkerName = workerName;
    }
}
